const {
  Base
} = require('./base.js')

class IntegralShopModel extends Base {
  constructor() {
    super()
  }
  /**
   * 小程序小游戏列表
   */
  gameList(data) {
    return this.promiseRequest('/wechat/point/game/list', data)
  };
  /**
   * 小程序商品列表
   */
  itemAppletQuery(data) {
    return this.promiseRequest('/wechat/point/item/applet/query', data)
  };
  /**
   * 积分商品详情
   */
  itemAppletGet(data) {
    return this.promiseRequest('/wechat/point/item/applet/get', data)
  };
  /**
   * 小程序兑换积分
   */
  itemAppletExchange(data) {
    return this.promiseRequest('/wechat/point/item/applet/exchange', data)
  };
  /**
   * 小程序无token商品查看
   */
  tokenAppletGet(data) {
    return this.promiseRequest('/wechat/point/item/without/token/applet/get', data)
  };
  /**
   * 小程序商户最低和最高等级
   */
  appletLevelScale(data) {
    return this.promiseRequest('/wechat/point/item/applet/level/scale', data)
  };
}

module.exports = {
  IntegralShopModel
}